package com.wp.file.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 仓库表
 */
@Data
public class Warehouse {
    private Long id;
    private Long userId;
    private Integer sort;
    private String displayName;
    private String path;
    private Long fileId;
    private Double displaySize;
    @TableField(fill = FieldFill.INSERT)//自动插入填充
    private LocalDateTime updateTime;

    @TableLogic(value = "0", delval = "-1")
    @TableField(fill = FieldFill.INSERT)
    private Integer deleteFlag;
}
